package gin

type Group struct {
	mengine		*engine
	midllers []HandlerFunc
	name string
}

func newGroup(e *engine,name string) *Group {
	return &Group{
		mengine: e,
		midllers: make([]HandlerFunc, 0),
		name: name,
	}
}

func (g *Group) Get(path string,f Handler) {
	g.mengine.get(g.name+path,f)
}

func (g *Group) Post(path string,f Handler) {
	g.mengine.post(g.name+path,f)
}

func (g *Group) Use(f HandlerFunc) {
	g.addMid(f)
}

func (g *Group) addMid(f HandlerFunc) {
	g.midllers = append(g.midllers, f)
}